package com.jobpass.common.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author jobpass
 * @since 2020-07-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Recruit对象", description="")
public class Recruit implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "招聘岗位")
    private String post;

    @ApiModelProperty(value = "招聘薪资")
    private BigDecimal pay;

    @ApiModelProperty(value = "职位描述")
    private String brief;

    @ApiModelProperty(value = "招聘人数")
    private Integer num;

    @ApiModelProperty(value = "招聘地点")
    private String site;

    @ApiModelProperty(value = "招聘需求")
    private String demand;

    @ApiModelProperty(value = "招聘企业id")
    private Long enterpriseId;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date creatTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
